\hypertarget{mathutil_8h}{
\section{src/mathutil.h File Reference}
\label{mathutil_8h}\index{src/mathutil.h@{src/mathutil.h}}
}
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structtag_v_e_c_t_o_r2_d_f}{tagVECTOR2DF}
\begin{CompactList}\small\item\em an abstract vector \item\end{CompactList}\item 
struct \hyperlink{structtag_l_i_n_e2_d_f}{tagLINE2DF}
\begin{CompactList}\small\item\em an abstract line \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef struct \hyperlink{structtag_v_e_c_t_o_r2_d_f}{tagVECTOR2DF} \hyperlink{mathutil_8h_55ceac2f5a467a1a0d25502fb2306618}{VECTOR2DF}
\begin{CompactList}\small\item\em an abstract vector \item\end{CompactList}\item 
typedef struct \hyperlink{structtag_l_i_n_e2_d_f}{tagLINE2DF} \hyperlink{mathutil_8h_611bc19c23c911eb09c647d0c063c7db}{LINE2DF}
\begin{CompactList}\small\item\em an abstract line \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{structtag_v_e_c_t_o_r2_d_f}{VECTOR2DF} \hyperlink{mathutil_8h_c31f5241dbf9cf813284e5d9da04359b}{closest\_\-pnt\_\-on\_\-line} (\hyperlink{structtag_v_e_c_t_o_r2_d_f}{VECTOR2DF}, \hyperlink{structtag_l_i_n_e2_d_f}{LINE2DF})
\end{CompactItemize}


\subsection{Typedef Documentation}
\hypertarget{mathutil_8h_611bc19c23c911eb09c647d0c063c7db}{
\index{mathutil.h@{mathutil.h}!LINE2DF@{LINE2DF}}
\index{LINE2DF@{LINE2DF}!mathutil.h@{mathutil.h}}
\subsubsection[{LINE2DF}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf tagLINE2DF}  {\bf LINE2DF}}}
\label{mathutil_8h_611bc19c23c911eb09c647d0c063c7db}


an abstract line 

\hypertarget{mathutil_8h_55ceac2f5a467a1a0d25502fb2306618}{
\index{mathutil.h@{mathutil.h}!VECTOR2DF@{VECTOR2DF}}
\index{VECTOR2DF@{VECTOR2DF}!mathutil.h@{mathutil.h}}
\subsubsection[{VECTOR2DF}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf tagVECTOR2DF}  {\bf VECTOR2DF}}}
\label{mathutil_8h_55ceac2f5a467a1a0d25502fb2306618}


an abstract vector 



\subsection{Function Documentation}
\hypertarget{mathutil_8h_c31f5241dbf9cf813284e5d9da04359b}{
\index{mathutil.h@{mathutil.h}!closest\_\-pnt\_\-on\_\-line@{closest\_\-pnt\_\-on\_\-line}}
\index{closest\_\-pnt\_\-on\_\-line@{closest\_\-pnt\_\-on\_\-line}!mathutil.h@{mathutil.h}}
\subsubsection[{closest\_\-pnt\_\-on\_\-line}]{\setlength{\rightskip}{0pt plus 5cm}{\bf VECTOR2DF} closest\_\-pnt\_\-on\_\-line ({\bf VECTOR2DF}, \/  {\bf LINE2DF})}}
\label{mathutil_8h_c31f5241dbf9cf813284e5d9da04359b}


determines the closest point on a line to a given point \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em VECTOR2DF}]the given point \item[{\em LINE2DF}]the given line \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the point on the line that is closest to the given point \end{Desc}
